<!-- Begin Search -->
<form id="fm" method="post" enctype="multipart/form-data">
	<table border="0" width="90%" cellspacing="0" style="padding-top: 3px;"
		cellpadding="1" class="tblForm">
		<tr>
			<td>
				<span>Từ:</span>
			</td>
			<td>
				<input id="startTime" name="startTime" class="easyui-datetimebox" style="border: 1px solid #ccc">
			</td>
		</tr>
		<tr>
			<td><span>Đến:</span></td>
			<td>
				<input id="endTime" name="endTime" class="easyui-datetimebox" >
			</td>
			<td><a href="#" class="easyui-linkbutton" iconCls="icon-search"
				plain="true" onclick="rsearch()">Tìm kiếm</a></td>
		</tr>
	</table>
</form>
	<!-- End Search -->
<div id="rooms"><div>
<script type="text/javascript">
	$.ajax({url: 'room/list', success: function(resp) {
		$('#rooms').html(resp);
	}});
function rsearch() {
			$('#fm').form('submit',{
				url: 'room/list',
				onSubmit: function(){
					return $(this).form('validate');
				},
				success: function(result){
					$('#rooms').html(result);
				}
			});
}
</script>